package common;

import java.util.List;

import form.PassengerForm;

public class ListOperate {

	public static List<PassengerForm> removeDuplicate(List<PassengerForm> list) {
		for (int i = 0; i < list.size() - 1; i++) {
			for (int j = list.size() - 1; j > i; j--) {
				if (list.get(j).getPhone().equals(list.get(i).getPhone())
						&& list.get(j).getName().equals(list.get(i).getName())) {
					list.remove(j);
				}
			}
		}
		return list;
	}

}
